package com.mayikt.common.core.api;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author wangjin
 * @title: BaseResponse
 * @projectName mayikt-cloud
 * @description: TODO
 * @date 2022/4/10 0010 15:54
 */
@Data
@ApiModel(value = "BaseResponse", description = "返回base数据")
public class BaseResponse<T> {

    /**
     * 返回码
     */
    @ApiModelProperty("状态码")
    private Integer code;
    /**
     * 消息
     */
    @ApiModelProperty("返回msg")
    private String msg;
    /**
     * 返回
     */
    @ApiModelProperty("返回data数据")
    private T data;
    // 分页

    public BaseResponse() {

    }

    public BaseResponse(Integer code, String msg, T data) {
        super();
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

}